<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <!-- <script type="text/javascript" src="__JS__/common.js"></script> -->
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-xs-10 content"> 
      <ul class="nav nav-tabs">
      <li ><a href="{:U('My/index')}"><i class="icon icon-home"></i>首页</a></li>
      <li class="active"><a href="{:U('my/upload')}">资料上传</a></li>
      <li><a href="{:U('Index/xbdocfiles')}">资料搜索</a></li>
      <li><a href="{:U('My/mydoc')}" >我的资料</a><li>
   </ul>

  <h3 style="color:#5A81A8">&nbsp;&nbsp;<i class="icon icon-pencil"></i> <a href="__SELF__"><strong>课程资料上传</strong></a></h3>
  
       <h4 class="col-md-offset-1 col-md-12"  style="color:#F00">如果课程信息不对，请返回重选。</h4>
       <div class="form-horizontal">
        <form  action="__SELF__" method="post" enctype="multipart/form-data"  role="form">
        
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">当前课程:</label>  
             <div  class="col-sm-4">         
                <input class="form-control" type="text"  name="cname1" value="{$_cur.cname}" disabled>
            </div>
        </div>

         <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">任课教师:</label>
             <div  class="col-sm-4">         
                <input class="form-control" type="text"  name="teacher1" value="{$_cur.teacher}" disabled>    
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="cate">资料类别:</label> 
            <div class="col-sm-4" >   
               <select class="form-control" name="cate" id="cate" >
                 <option value="" > 请选择类别</option>
                 <option value="课程计划"> 课程计划（期初）</option>
                 <option > 备课汇总</option>
                 <option > 申报方案</option>
                 <option > 自编教材</option>
                 <option > 其他材料</option>
                </select> 
              </div>         
        </div>
          
        <div class="form-group">

            <label class="col-sm-2 control-label no-padding-right" for="lefile"> 选择文件:</label>
            <div class="col-sm-6">
              <div class="input-group">
              <input id="lefile" class="form-control" type="file" name="upfile" style="display:none">               
              <input id="files-text" class="form-control" type="text"  onclick="$('input[id=lefile]').click();">
              <span class="input-group-btn">
                <button class="btn btn-primary" type="button" onclick="$('input[id=lefile]').click();"><i class="icon icon-folder-open"> </i>    浏览文件</button>
              </span>
              </div>
             <label class="help-block">五彩课程资料上传： <span class="check-tips">（请以附件形式上传电子文档）</span> </label>

            </div>
           <script type="text/javascript">
            $('input[id=lefile]').change(function() {
            $('#files-text').val($(this).val());
            });
            </script>
        </div>

        <div class="form-group">
        <input type="hidden" name="cid" value="{$_cur.cid}" />
       <!--  <input type="hidden" name="uid" value="1" /> -->
        <input type="hidden" name="cname" value="{$_cur.cname}" />
        <input type="hidden" name="teacher" value="{$_cur.teacher}" />

            <div class="col-sm-offset-2 col-sm-6">
            
            <button class="btn btn-success" id="submit-button" type="submit"  onclick='submit'><i class="icon icon-ok"></i>确 定</button>
            <button class="btn btn-danger" onclick="javascript:history.back(-1);return false;"><i class="icon icon-remove"></i>返 回</button>
            </div>
        </div>

        </form>
        </div>
</div>
</block>